package com.yixun.qfbao.model.enums;

public enum TimeTypeEnum {
    REPORT_TIME("1","报备时间"),
    VISIT_TIME("2","到访时间"),
    RECOGNIZE_TIME("3","认筹时间"),
    TAKE_UP_TIME("4","认购时间"),
    SIGN_TIME("5","签约时间"),
    DEAL_FAIL_TIME("6","交易失败时间");

    private String code;
    private String value;

    TimeTypeEnum(String code, String name) {
        this.code = code;
        this.value = name;
    }
    public String getCode() {
        return code;
    }

    public String getValue() {
        return value;
    }

    public static TimeTypeEnum getByCode(String code) {
        for (TimeTypeEnum item : TimeTypeEnum.values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }
}
